package com.wgl.cmnclient.inteface;

import com.wgl.yygh.result.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wgl
 * @version 1.0.0
 * @ClassName DictFeignClient.java
 * @Description TODO
 * @createTime 2022年02月06日 22:00:00
 */
@Service
@FeignClient("service-cmn")
public interface DictFeignClient {

    @GetMapping("/admin/cmn/dict/getName/{dictCode}/{value}")
    public Result getName(@PathVariable String dictCode, @PathVariable String value);

    @GetMapping("/admin/cmn/dict/getName/{value}")
    public Result getName(@PathVariable String value);
}
